<!DOCTYPE html>
<html lang="zh">
<head>

    <title>登录</title>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- Google Font: Source Sans Pro -->
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="/static/adminlte/plugins/fontawesome-free/css/all.min.css?t=1">
    <link rel="stylesheet" href="/static/adminlte/plugins/fontawesome-free/css/fontawesome.min.css?t=1">
    <!-- overlayScrollbars -->
    <link rel="stylesheet" href="/static/adminlte/plugins/overlayScrollbars/css/OverlayScrollbars.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="/static/adminlte/css/adminlte.min.css">
    <!--自定义样式-->
    <link rel="stylesheet" href="/static/adminlte/css/bs/admin.css?t=<{:time()}>">


    <link rel="stylesheet" href="/static/adminlte/plugins/fontawesome-free/css/all.min.css">
    <!-- icheck bootstrap -->
    <link rel="stylesheet" href="/static/adminlte/plugins/icheck-bootstrap/icheck-bootstrap.min.css">

</head>
<body class="hold-transition login-page">
<div class="login-box">
    <!-- /.login-logo -->
    <div class="card card-outline card-primary">
        <div class="card-header text-center">
            <a href="#" class="h1">商城后台</a>
        </div>
        <div class="card-body">
            <p class="login-box-msg">登录开始使用管理系统</p>

            <form action="<{:url('do_login')}>" method="post" id="check-form">
                <div class="input-group mb-3">
                    <input type="text" class="form-control" name="account" placeholder="账号">
                    <div class="input-group-append">
                        <div class="input-group-text">
                            <span class="fas fa-users"></span>
                        </div>
                    </div>
                    <{:token()}>
                </div>
                <div class="input-group mb-3">
                    <input type="password" class="form-control" name="pwd" placeholder="登录密码">
                    <div class="input-group-append">
                        <div class="input-group-text">
                            <span class="fas fa-lock"></span>
                        </div>
                    </div>
                </div>
                <div class="row">
                     <div class="col-8">
                         <div class="icheck-primary">
                             <input type="checkbox" name="remember" id="remember">
                             <label for="remember">
                                 记住我
                             </label>
                         </div>
                     </div>
                    <!-- /.col -->
                    <div class="col-4">
                        <button type="button" class="btn btn-primary btn-block" onclick="sub()">登录</button>
                    </div>
                    <!-- /.col -->
                </div>
            </form>

            <!--<div class="social-auth-links text-center mt-2 mb-3">
                <a href="javascript:layer.msg('暂未接入')" class="btn btn-block btn-success">
                    <i class="fas fa-wechat mr-2"></i> 微信登录
                </a>

            </div>-->
            <!-- /.social-auth-links -->

            <!-- <p class="mb-1">
                 <a href="<{:url('forget_pwd')}>">忘记密码</a>
             </p>-->
            <!-- <p class="mb-0">
                 <a href="<{:url('reg')}>" class="text-center">注册账号</a>
             </p>-->
        </div>
        <!-- /.card-body -->
    </div>
    <!-- /.card -->
</div>
<!-- /.login-box -->

<!-- jQuery -->
<script src="/static/adminlte/plugins/jquery/jquery.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<script src="/static/adminlte/plugins/jquery-ui/jquery-ui.min.js"></script>
<!-- Bootstrap 4 -->
<script src="/static/adminlte/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- overlayScrollbars -->
<script src="/static/adminlte/plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js"></script>
<!-- AdminLTE App -->
<script src="/static/adminlte/js/adminlte.min.js"></script>
<!--引入layer.js-->
<script src="/static/adminlte/plugins/layer/layer.js"></script>
<!--引入自定义的js函数-->
<script src="/static/adminlte/plugins/bs/common.js"></script>
<!--jquery.form-->
<script src="/static/adminlte/plugins/bs/jquery.form.js"></script>

<script>
    function sub() {
        form_submit([],false,false,function (res) {
            if (res.code==0){
                location.href = res.data.url
            }
        },false,true)
    }
</script>
</body>
</html>
